package com.fuze.navi.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author sepc_
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "coordinate")
public class Coordinate implements Serializable {
    private static final long serialVersionUID = 6306811335708655728L;
    /**
     * 坐标数据的自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 长兴原中台系统的设备id
     */
    @TableField(value = "device_id")
    private String deviceId;

    /**
     * 设备名称
     */
    @TableField(value = "device_name")
    private String deviceName;

    /**
     * 电压等级
     */
    @TableField(value = "voltage_level")
    private String voltageLevel;

    /**
     * 经度坐标
     */
    @TableField(value = "lon")
    private String lon;

    /**
     * 纬度坐标
     */
    @TableField(value = "lat")
    private String lat;

    /**
     * 所属电站id
     */
    @TableField(value = "line_id")
    private Long lineId;

    /**
     * 逻辑删除（0-未删除，1-已经删除）
     */
    @TableField(value = "delete_flag")
    private Byte deleteFlag;

    public static final String COL_ID = "id";

    public static final String COL_DEVICE_ID = "device_id";

    public static final String COL_DEVICE_NAME = "device_name";

    public static final String COL_VOLTAGE_LEVEL = "voltage_level";

    public static final String COL_LON = "lon";

    public static final String COL_LAT = "lat";

    public static final String COL_DELETE_FLAG = "delete_flag";

    public static final String COL_LINE_ID = "line_id";
}